import java.util.Calendar;
import java.util.Date;

/**
 * @author sjw
 * @className Test
 * @date 2021/3/1 14:08
 * @description: TODO
 */
public class Test {
    public static void main(String[] args) {





        Calendar currentDate = Calendar.getInstance();

        currentDate.setTime(new Date());

        currentDate.add(Calendar.MONTH, Integer.parseInt("-1"));
        System.out.println( currentDate.getTime() );
    }
}
